var lb=document.getElementById("lb");
lb.onclick=function (){
    console.log("label被点击");
}
var btn=document.getElementById("btn");
btn.onclick=function (){
    var userName=document.getElementById("userName").value;
    var passWord=document.getElementById("passWord").value;
    var rightUN='user';
    var rightPD='psd';
    if(userName === rightUN && passWord === rightPD){
        document.write('登录成功');
    }else{
        console.log("失败");
    }
}
var div3=document.getElementById("div3");
div3.onclick=function (){
    div3.innerHTML='<button>innerHTML现在是修改后</button>';
    console.log(div3.innerHTML);
}
var div4=document.getElementById("div4");
div4.onclick=function (){
    div4.innerText='<button>innerText现在是修改后文本</button>';
    console.log(div4.innerText);
}
var div5=document.getElementById("div5");
div5.onclick=function (){
    var str=document.getElementById("div5").innerText;
    div5.textContent=str;
    console.log(div5.textContent);
    div5.innerText=str;
}
var a1=document.getElementById("a1");
a1.onclick=function (){
    a1.style.fontSize="55px";
}

var sp1=document.getElementById("sp1");
sp1.onclick=function (){
    console.log("sp1 clicked");
    sp1.className='aTest1';
}